var _ = require('lodash')
let arr = [false,0,undefined,'',"",-1,{},null,NaN]
console.log(_.compact(arr))